﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Services;
using MvcPaging;
namespace Heart.Controllers
{
    public class SuperUserController : Controller
    {
        //
        // GET: /superuser/
        private SuperUserService categoryService = new SuperUserService();
        public ActionResult Index(int? page)
        {
            int PageIndex = page.HasValue ? (page.Value == 0 ? 0 : (page.Value - 1)) : 0;
            var info = categoryService.GetAllList().ToPagedList(PageIndex, 2);
            return View(info);
        }

    }
}
